﻿/* 
 *  <copyright file="BaseTranslator.cs" company="Wesley Jowitt">
 *  
 *  SobrietyEngine: Copyright (c) 2011 Wesley Jowitt
 *  
 *  This software is distributed under a software license.
 *   * As of the creation time of this file, the license in use is the Microsoft Permissive License (Ms-PL) 
 *    * The license can be viewed at:
 *     * License.Txt in the root folder of this project
 *      * http://sobrietyengine.codeplex.com/license
 *       * http://www.microsoft.com/opensource/licenses.mspx
 *       
 *  </copyright>
 *   */

using System;

using Microsoft.Xna.Framework;
using SobrietyEngine.Events;

namespace SobrietyEngine.Input
{
    public abstract class BaseTranslator:IInputDevice
    {
        public Boolean Gamepad { get; set; }
        public int GamepadIndex { get; set; }
        protected IEventRouter EventRouterGameService { get; set;}

        public BaseTranslator(IEventRouter er, Boolean _gamepad, int playerIndex)
        {
            EventRouterGameService = er;
            Gamepad = _gamepad;
            GamepadIndex = playerIndex;
        }

        abstract public void Update(GameTime gameTime);
    }
}
